package com.stone.design.mode.flyweight;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 带对象池的考生报考信息
 *
 * @author Mr_wenpan@163.com 2022/03/14 21:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SignInfoPool extends SignInfo {

    /**
     * 享元模式外部状态（创建后就不可改变）
     */
    private final String unionKey;

    public SignInfoPool(String unionKey) {
        this.unionKey = unionKey;
    }

}
